// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.inventory.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Data;

/**
 * InventoryVariation
 */
@Data
@TableName(value = "inventory_variation", autoResultMap = true)
@Schema(title = "库存变动表")
public class InventoryVariation implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 仓库内码
   */
  @TableField(value = "`stock_id`")
  @Schema(title = "仓库内码")
  private Long stockId;

  /**
   * 项目内码
   */
  @TableField(value = "`project_id`")
  @Schema(title = "项目内码")
  private Long projectId;

  /**
   * 物料内码
   */
  @TableField(value = "`item_id`")
  @Schema(title = "物料内码")
  private Long itemId;

  /**
   * 批号
   */
  @TableField(value = "`batch_no`")
  @Schema(title = "批号")
  private String batchNo;
  /**
   * 单据类型
   */
  @TableField(value = "`document_type`")
  @Schema(title = "单据类型")
  private String documentType;
  /**
   * 变动类型
   */
  @TableField(value = "`change_type`")
  @Schema(title = "变动类型")
  private String changeType;

  /**
   * 变动源类型
   */
  @TableField(value = "`from_type`")
  @Schema(title = "变动源类型")
  private String fromType;

  /**
   * 变动目标类型
   */
  @TableField(value = "`to_type`")
  @Schema(title = "变动目标类型")
  private String toType;

  /**
   * 关联单据号
   */
  @TableField(value = "`form_num`")
  @Schema(title = "关联单据号")
  private String formNum;

  /**
   * 关联制单人
   */
  @TableField(value = "`form_operator`")
  @Schema(title = "关联制单人")
  private String formOperator;

  /**
   * 操作业务名称
   */
  @TableField(value = "`operate`")
  @Schema(title = "操作业务名称")
  private String operate;

  /**
   * 关联唯一操作键
   */
  @TableField(value = "`operate_key`")
  @Schema(title = "关联唯一操作键")
  private String operateKey;

  /**
   * 操作时间
   */
  @TableField(value = "`operate_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "操作时间")
  private java.util.Date operateTime;

  /**
   * 库存数量
   */
  @TableField(value = "`stock_qty`")
  @Schema(title = "库存数量")
  private java.math.BigDecimal stockQty;

  /**
   * 库存数量变更
   */
  @TableField(value = "`change_stock_qty`")
  @Schema(title = "库存数量变更")
  private java.math.BigDecimal changeStockQty;

  /**
   * 库存金额
   */
  @TableField(value = "`stock_amount`")
  @Schema(title = "库存金额")
  private java.math.BigDecimal stockAmount;

  /**
   * 辅助数量
   */
  @TableField(value = "`aux_qty`")
  @Schema(title = "辅助数量")
  private java.math.BigDecimal auxQty;

  /**
   * 锁库数量
   */
  @TableField(value = "`lock_qty`")
  @Schema(title = "锁库数量")
  private java.math.BigDecimal lockQty;

  /**
   * 锁库数量变更
   */
  @TableField(value = "`change_lock_qty`")
  @Schema(title = "锁库数量变更")
  private java.math.BigDecimal changeLockQty;

  /**
   * 陈列数量
   */
  @TableField(value = "`display_qty`")
  @Schema(title = "陈列数量")
  private java.math.BigDecimal displayQty;

  /**
   * 陈列数量变更
   */
  @TableField(value = "`change_display_qty`")
  @Schema(title = "陈列数量变更")
  private java.math.BigDecimal changeDisplayQty;

  /**
   * 残次数量
   */
  @TableField(value = "`defect_qty`")
  @Schema(title = "残次数量")
  private java.math.BigDecimal defectQty;

  /**
   * 残次数量变更
   */
  @TableField(value = "`change_defect_qty`")
  @Schema(title = "残次数量变更")
  private java.math.BigDecimal changeDefectQty;

  /**
   * 在途数量
   */
  @TableField(value = "`way_qty`")
  @Schema(title = "在途数量")
  private java.math.BigDecimal wayQty;

  /**
   * 在途数量变更
   */
  @TableField(value = "`change_way_qty`")
  @Schema(title = "在途数量变更")
  private java.math.BigDecimal changeWayQty;
  /**
   * 暂存数量变更
   */
  @TableField(value = "`storage_qty`")
  @Schema(title = "暂存数量")
  private java.math.BigDecimal StorageQty;

  /**
   * 暂存数量变更
   */
  @TableField(value = "`change_storage_qty`")
  @Schema(title = "暂存数量变更")
  private java.math.BigDecimal changeStorageQty;

  /**
   * 次品锁定数量
   */
  @TableField(value = "`reject_lock_qty`")
  @Schema(title = "次品锁定数量")
  private java.math.BigDecimal rejectLockQty;

  /**
   * 暂存数量变更
   */
  @TableField(value = "`change_reject_lock_qty`")
  @Schema(title = "次品锁定数量变更")
  private java.math.BigDecimal changeRejectLockQty;

  /**
   * 拣货库存
   */
  @TableField(value = "`picking_qty`")
  @Schema(title = "拣货库存")
  private java.math.BigDecimal pickingQty;

  /**
   * 拣货库存变更
   */
  @TableField(value = "`change_picking_qty`")
  @Schema(title = "拣货库存数量变更")
  private java.math.BigDecimal changePickingQty;
  /**
   * 用户数据1
   */
  @TableField(value = "`user_data_1`")
  @Schema(title = "用户数据1")
  private String userData1;

  /**
   * 用户数据2
   */
  @TableField(value = "`user_data_2`")
  @Schema(title = "用户数据2")
  private String userData2;

  /**
   * 用户数据3
   */
  @TableField(value = "`user_data_3`")
  @Schema(title = "用户数据3")
  private String userData3;

  /**
   * 用户数据4
   */
  @TableField(value = "`user_data_4`")
  @Schema(title = "用户数据4")
  private String userData4;

  /**
   * 用户数据5
   */
  @TableField(value = "`user_data_5`")
  @Schema(title = "用户数据5")
  private String userData5;

  /**
   * 用户数据6
   */
  @TableField(value = "`user_data_6`")
  @Schema(title = "用户数据6")
  private String userData6;

  /**
   * 用户数据7
   */
  @TableField(value = "`user_data_7`")
  @Schema(title = "用户数据7")
  private String userData7;

  /**
   * 用户数据8
   */
  @TableField(value = "`user_data_8`")
  @Schema(title = "用户数据8")
  private String userData8;

  /**
   * 备注
   */
  @TableField(value = "remark")
  @Schema(title = "备注")
  private String remark;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * FNSKU
   */
  @TableField(value = "`fn_sku`")
  @Schema(title = "FNSKU")
  private String fnSku;
  /**
   * MSKU
   */
  @TableField(value = "`shop_id`")
  @Schema(title = "店铺id")
  private String shopId;

  /**
   * 待检库存
   */
  @TableField(value = "`inspected_qty`")
  @Schema(title = "待检库存")
  private java.math.BigDecimal inspectedQty;
  /**
   * 待检库存变更
   */
  @TableField(value = "`change_inspected_qty`")
  @Schema(title = "待检库存变更")
  private java.math.BigDecimal changeInspectedQty;
  /**
   * 次品在途
   */
  @TableField(value = "`reject_way_qty`")
  @Schema(title = "次品在途")
  private java.math.BigDecimal rejectWayQty;
  /**
   * 次品在途变更
   */
  @TableField(value = "`change_reject_way_qty`")
  @Schema(title = "次品在途变更")
  private java.math.BigDecimal changeRejectWayQty;


  /**
   * 自定义单号id 批次库存表添加
   */
  @TableField(value = "`custom_id`")
  @Schema(title = "自定义单号id")
  private Long customId;

  /**
   * 自定义单号id 批次库存表添加
   */
  @TableField(value = "`custom_bd_id`")
  @Schema(title = "自定义单号子id")
  private Long customBdId;
}
